﻿package ms.events
{
	/**
	* ...
	* @author Matej Svajger
	* @version 0.1
	*/
	
	import flash.events.Event;
	
	public class ButtonEvent extends Event
	{
		/**
		 * Dispatched when user clicks the button
		 * @eventType mouseClick
		 */
		public static const CLICK:String = "button_clicked";
		
		/**
		 * Dispatched when user clicks a close button
		 * @eventType mouseClick
		 */
		public static const CLOSE:String = "button_close";
		
		/**
		 * Dispatched when user sets focus on button
		 * @eventType mouseClick
		 */
		public static const ROLL_OVER:String = "button_over";
		
		/**
		 * Dispatched when user loses focus on button
		 * @eventType mouseClick
		 */
		public static const ROLL_OUT:String = "button_out";
		

		public function ButtonEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		override public function toString():String
		{
			return type;
		}
	}
}